package com.softeem.work.w7;

public class BankCard {
    //银行卡号 cardNo
    private int cardNo;
  	//客户姓名 name
    private String name;
  	//客户身份证号 personId
    private String personId;
  	//卡上余额 balance
    private double balance;

    public BankCard() {
    }

    public BankCard(int cardNo, String name, String personId, double balance) {
        this.cardNo = cardNo;
        this.name = name;
        this.personId = personId;
        this.balance = balance;
    }

    public int getCardNo() {
        return cardNo;
    }

    public void setCardNo(int cardNo) {
        this.cardNo = cardNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "BankCard{" +
                "cardNo='" + cardNo + '\'' +
                ", name='" + name + '\'' +
                ", personId='" + personId + '\'' +
                ", balance=" + balance +
                '}';
    }


}
